package com.cjh.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cjh.common.dto.StoreOrderDto;
import com.cjh.common.dto.StoreOrderPagingDTO;
import com.cjh.common.dto.UpdateOrderStautsDTO;
import com.cjh.common.entity.StoreOrder;
import com.cjh.common.response.Result;
import com.cjh.common.wxDto.ApplyForRefundDTO;
import com.cjh.common.wxDto.WXStoreOrderDto;

import java.util.List;

/**
 *
 */

public interface StoreOrderService extends IService<StoreOrder> {
  //sys
  Result getPagingStore(StoreOrderPagingDTO parseObject);

  Result getStoreByOrderId(Integer orderId);

  Result updateOrderStautsByOrderId(List<UpdateOrderStautsDTO> updateOrderStautsDTOList);

  Result updateOrderRemarksByOrderId(Integer orderId, String merchantRemarks);
  //wx
  Result addOrder(WXStoreOrderDto wxStoreOrderDto,Integer userId);

  Result getAllOrder(Integer current, Integer isNowDay,Integer userId);
  Result updateOrderStautsByOrderId1(Integer orderId, Integer status);

  Result applyForRefund(ApplyForRefundDTO applyForRefundDTO);

//  Result getOrderById(Integer orderId);

  void CompleteOrderTimingTask();

  void RefundOrderTimingTask();

    Result cancelApplicationForRefund(Integer orderId);
}
